<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" %>
<%@ page import="java.util.concurrent.atomic.AtomicInteger"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    // 检查application作用域中是否已经存在访问者计数器
    AtomicInteger visitorCount = (AtomicInteger) application.getAttribute("visitorCount");
    if (visitorCount == null) {
        // 如果不存在，则创建一个新的AtomicInteger对象并设置初始值为1
        visitorCount = new AtomicInteger(1);
        application.setAttribute("visitorCount", visitorCount);
    } else {
        // 如果存在，则增加计数器的值
        visitorCount.incrementAndGet();
    }
%>
<h2>您是第<%= visitorCount.get() %>个访问本网站的用户。</h2>

<p align="center"><font size="7" color="red">古诗词欣赏</font></p>
<br>
<hr color="blue"><br>
<p align="center">ssssssss
    <a href="../index.jsp">首页</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="srbg.html">诗人</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="2.html">古诗</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="/">诗句</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="/">古籍</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="/">文言文</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="/">鉴赏</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="/">二十四史</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="dl.jsp">登录</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

</p>
<div align="center">
    <form action="select_result.jsp" method="post" >
        书号<input name="bno"  type="text">
        <input type="submit" value="查询">
    </form>
</div>
</body>
</html>